package com.link.base.base.projectmanage.dao.mybatis.mapper;

import com.link.base.base.projectmanage.model.TaskInfo;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 拜访信息
 *
 * @author 刘启鑫
 * @date 2020-09-11 16:52:46
 */
public interface TaskInfoMapper extends BasicMapper<TaskInfo> {

    /**
     * 根据ID查询树形结构
     *
     * @param taskInfo
     * @return
     */
    TaskInfo queryTreeById(TaskInfo taskInfo);

    /**
     * 车型拜访计划报表
     * 据车型头，查询车型拜访计划 倒序
     * @param entity
     * @return
     */
    List<TaskInfo> queryAllByHeadId(TaskInfo entity);
}
